import BaseModel from "../../cfw/mvc/BaseModel";
import Player from "../player/Player";
import StateItemModel from "../player/model/StateItemModel";
import { PlayerStateID } from "../../public/Config";


export default class ToiletManager extends BaseModel {

    private static ins: ToiletManager;

    private state: StateItemModel;

    constructor() {
        super();
        this.state = Player.instance().getStateItemModel(PlayerStateID.TOLET)
    }

    static instance() {
        if (!this.ins) {
            this.ins = new ToiletManager()
        }
        return this.ins;
    }


    protected step: number = 0

    start() {

    }

    getStep() {
        return this.step++;
    }

    addNum(num:number){
        this.state.addNum(num)
    }

    updateExp() {
        Player.instance().updateExp(this.state)
    }

}
